package org.zhadoop.stream.cql.hooks;

import org.zhadoop.stream.cql.DriverContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

/**
 * driver 中run方法的钩子
 * @author zwd
 *
 */
public interface DriverRunHook extends Hook{
	
	/**
	 * driver的run方法执行之前调用
	 * @param context
	 * @param parseContext
	 */
	void preDriverRun(DriverContext context,ParseContext parseContext);
	
	/**
	 * driver的run方法执行之后调用
	 * @param context
	 * @param parseContext
	 */
	void postDriverRun(DriverContext context,ParseContext parseContext);
}
